package com.zhubayi.service;

import com.github.pagehelper.PageInfo;
import com.zhubayi.entity.R;
import com.zhubayi.entity.Great;
import com.zhubayi.entity.User;
import com.zhubayi.entity.vo.UserVo;
import com.zhubayi.utils.UserQueryConditionUtils;

import javax.servlet.http.HttpServletResponse;
import java.util.List;

/**
 * @author 祝八一
 */
public interface UserService {
    void register(User user);

    User login(String username, String password);

    void updateAvatar(String url,Integer id);

    void addVideoNum(Integer id);

    PageInfo<UserVo>  queryCondition(UserQueryConditionUtils utils,Integer currentPage,Integer pageSize);

    PageInfo<UserVo> queryAll(Integer currentPage, Integer pageSize);

    void download(HttpServletResponse response, List<UserVo> userVoList);

    void update(User user);

    R updatePassword(Integer id, String oldpassword, String password);

    User findByUsername(String username);

    List<Great> SelectRoleByUid(Integer id);
}
